/**
 * Copyright &copy; 2016 CNJSON All rights reserved.
 */
package com.hongsuan.pplive.modules.live.entity;

import org.hibernate.validator.constraints.Length;

import com.cnjson.db.persistence.DataEntity;

/**
 * 单表生成Entity
 * @author cgli
 * @version 2016-06-06
 */
public class LiveApiConfig extends DataEntity<LiveApiConfig> {

	private static final long serialVersionUID = 1L;
	private String name;		// 名称
	private String clientUrl;		// 调用URL
	private String callbackUrl;		// 回调URL
	private String serverUrl;		// TX服务端URL
	private String type;		// 分类

	public LiveApiConfig() {
		super();
	}

	public LiveApiConfig(String id){
		super(id);
	}

	@Length(min=1, max=255, message="名称长度必须介于 1 和 255 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Length(min=1, max=500, message="调用URL长度必须介于 1 和 500 之间")
	public String getClientUrl() {
		return clientUrl;
	}

	public void setClientUrl(String clientUrl) {
		this.clientUrl = clientUrl;
	}

	@Length(min=0, max=500, message="回调URL长度必须介于 0 和 500 之间")
	public String getCallbackUrl() {
		return callbackUrl;
	}

	public void setCallbackUrl(String callbackUrl) {
		this.callbackUrl = callbackUrl;
	}

	@Length(min=0, max=500, message="TX服务端URL长度必须介于 0 和 500 之间")
	public String getServerUrl() {
		return serverUrl;
	}

	public void setServerUrl(String serverUrl) {
		this.serverUrl = serverUrl;
	}

	@Length(min=0, max=2, message="分类长度必须介于 0 和 2 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

}